package com.easysoft.framework.announce.mapper;

import com.easysoft.framework.announce.model.SysAnnounceQuery;
import com.easysoft.framework.announce.model.SysAnnounceView;
import com.easysoft.framework.beans.Page;
import com.easysoft.framework.manager.model.SysManagerView;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisRepository("mapper.SysAnnounceMapperExtd")
public interface SysAnnounceMapperExtd extends SysAnnounceMapper {

    int selectCountAllAnnounce(@Param("query") SysAnnounceQuery query);

    List<SysAnnounceView> selectSysAnnounceByPage(@Param("page") Page page, @Param("query") SysAnnounceQuery query);

    SysAnnounceView selectSysAnnounceViewByPrimaryKey(String id);

    List<Map<String,String>> selectSysAnnounce(@Param("isCaeousel") boolean isCaeousel);
}
